package async.callback;

/**
 * @author jiangwz
 * @create 2020/10/15.
 */
public interface CallBack<T> {

    CallBack<Void> EMPTY = new CallBack<Void>() {
        @Override
        public void onSuccess(Void msg) {

        }

        @Override
        public void onError(Throwable e) {

        }
    };

    void onSuccess(T msg);

    void onError(Throwable e);
}
